#Notes: see P442 in <<Thinking in C++>> Volume 1.
reciprocal: main.o reciprocal.o
	g++ $(CFLAGS) -o reciprocal main.o reciprocal.o
	
main.o: main.c reciprocal.hpp
	gcc $(CFLAGS) -c main.c
	
reciprocal.o: reciprocal.cpp reciprocal.hpp
	g++ $(CFLAGS) -c reciprocal.cpp
	
clean:
	rm -f *.o reciprocal

run:
	./reciprocal 2
